import { defineStore } from 'pinia'
import { ref } from 'vue'

const useLangstore = defineStore(
  'Lang',
  () => {
    const lang = ref('zh')
    const changelangFn = (langValue) => {
      lang.value = langValue
    }
    return { lang, changelangFn }
  },
  {
    persist: true,
  }
)

export default useLangstore
